//
//  UnitProxy.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-6-8.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "UserData.h"

@interface UnitProxy : NSObject
{
    UserData* _userData;
    NSString* _selectUserDataKey;
    NSUserDefaults* ud;
}

@property (readwrite, retain) UserData* userData;           //用户数据
@property (readwrite, retain) NSString* selectUserDataKey;  //选的存档的key

+ (UnitProxy *) sharedManager;
+ (id)allocWithZone:(NSZone *)zone;

-(void) saveUserData;
-(void) loadUserDataByKey:(NSString*)userDataKey;
-(void) createUserDataByKey:(NSString*)userDataKey;

@end
